export default {
    name: 'form-item-input',
    data: {
        type: 'text',
        maxLength:0,
        placeHolder:'',
        numberConfig: {  //如果是number类型, 那么需要需要设置number的配置
            range: {
                min: 0,
                max: 100
            },
            onlyInteger: 1,
        },
        style: {
            backgroundColor: 'none'
        },
        repeatCheck: '0',
        required: 0,  //是否必填
        emptyTips : '当前字段不能为空', //为空提示语
        validateCode: '',   //校验规则code
        label: '输入框',
        fieldName: '',
        placeholder: '',
        value: '',
    },
    label: {
        name: "输入框",
        icon: 'chat-o',
        type: "component-form-input-label",
    },
    render: {
        type: "component-form-input-render",
        component: import('./render.vue')
    },
    preview: {
        type: "component-form-input-preview",
        component: import('./preview.vue')
    },
    config: {
        type: "component-form-input-config",
        component: import('./config.vue')
    },
}
